package com.dr.cmdb.core.service;

import org.apache.http.HttpResponse;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * @ProjectName: cmdb
 * @Package: com.dr.cmdb.application.service
 * @Description: java类作用描述
 * @Author: duanrui
 * @CreateDate: 2021/3/18 9:45
 * @Version: 1.0
 * <p>
 * Copyright: Copyright (c) 2021
 */
public interface CiItemService {

    /**
     * 添加ci项
     *
     * @param params
     */
    void addCiItem(Map<String, Object> params);

    /**
     * 修改ci项
     *
     * @param params
     */
    void editCiItem(Map<String, Object> params);

    /**
     * 删除配置项
     * @param code
     */
    void deleteCiItem(String code);

    /**
     * 添加ci项集合
     *
     * @param list
     */
    void addCiItems(List<Map<String, Object>> list);
    /**
     * 获取ci列表
     *
     * @return
     */
    List<Object> getListByParams(Map<String, Object> map);


    /**
     *导出查询数据
     * @param searchMap
     * @param fileName
     * @param sheetName
     * @param response
     */
    void exportCiItems(Map<String, Object> searchMap,String fileName, String sheetName, HttpServletResponse response);

    /**
     * 导入配置项数据
     * @param list
     * @param tableName
     */
    void importCiItems(List<Map<String, Object>> list,String tableName);
}
